package com.meals.system.dao;

import com.meals.system.entity.SystemSeller;
import com.meals.system.util.PageQueryUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Description:
 * Parm:
 * return:
 * Author: Chen
 * Date: 2021/12/11
 */
@Mapper
public interface SystemSellerMapper {

    SystemSeller selectByPrimaryKey(Long sellerId);

    SystemSeller selectByLoginName(String loginName);

    SystemSeller selectByLoginNameAndPassword(@Param("loginName") String loginName, @Param("password") String password);

    List<SystemSeller> findSystemSellerList(PageQueryUtil pageUtil);

    int getTotalSystemSeller(PageQueryUtil pageUtil);

    int insertSelective(SystemSeller record);

    int lockSellerBatch(@Param("ids") Long[] ids, @Param("lockStatus") int lockStatus);

    int updateByPrimaryKeySelective(SystemSeller record);

}
